package com.zzyl.nursing.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.common.core.domain.AjaxResult;
import com.zzyl.nursing.domain.Device;
import com.zzyl.nursing.dto.DeviceDto;
import com.zzyl.nursing.vo.DeviceDataVo;
import com.zzyl.nursing.vo.DeviceDetailVo;
import com.zzyl.nursing.vo.ProductVo;

import java.util.List;

/**
 * 设备管理Service接口
 *
 * @author guomo
 * @date 2025-10-17
 */
public interface IDeviceService extends IService<Device> {
    /**
     * 查询设备管理列表
     *
     * @param device 设备管理
     * @return 设备管理集合
     */
    public List<Device> selectDeviceList(Device device);


    void syncProductList();

    List<ProductVo> allProduct();

    void register(DeviceDto dto);

    DeviceDetailVo getDeviceInfo(String iotId);

    List<DeviceDataVo> queryServiceProperties(String iotId);

    void updateDevice(DeviceDto dto);

    void deleteDevice(String iotId);

    AjaxResult queryProduct(String productKey);
}
